<?php
	/**
	*
	*
	*/
	class Domaine {
	
		var $CODE_DOMAINE;
		var $NOM_DOMAINE;
		var $CODE_DIPLOME;
		
		var $diplome;
		/**
		* Retourne la liste des Domaines.	
		*
		*
		*/
		function getAllDomaine($diplome){
			$db = new Db();
			$db->connect();
			
				if($diplome!="")
				$req = $db->query("SELECT * FROM domaine WHERE CODE_DIPLOME = $diplome order by NOM_DOMAINE");
			
			
			    if($diplome==0)
				$req = $db->query("SELECT * FROM domaine order by NOM_DOMAINE");
               
			   
			   
			    $res = $db->fetchArray();
			
			return($res);	
			$db->disconnect();
		}
 
 	
	}

?>